package com.qf.controller;

import com.qf.entity.Classroom;
import com.qf.service.ClassroomService;
import com.qf.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author cuicui
 * @Description
 * @Date 2025-8-16
 */
@RestController
public class ClassroomController {
    @Autowired
    private ClassroomService classroomService;
    @GetMapping("classroom/gitMsgById")
    public R getMsgById(int id){
        Classroom classroom =  classroomService.getMsgById(id);
        return R.success(classroom);
    }
}
